import React from 'react';
import {View, Text} from 'react-native';
import {Button} from '@rneui/base';

import {createNativeStackNavigator} from '@react-navigation/native-stack';
const NativeStack = createNativeStackNavigator();
import {createDrawerNavigator} from '@react-navigation/drawer';
const DrawerStack = createDrawerNavigator();

import Main from './Main';
import Setting from './Setting';

import PersionDetail from './pages/PersionDetail';
import SeniorEntry from './pages/SeniorEntry';

const routeParentPath = 'WxBus';
export default () => {
  return (
    <NativeStack.Navigator
      screenOptions={{headerShown: false, animation: 'slide_from_right'}}>
      <NativeStack.Screen name={`${routeParentPath}/Main`} component={Main} />
      <NativeStack.Screen
        name={`${routeParentPath}/Setting`}
        component={Setting}
        options={{
          headerShown: true,
          title: '设置',
        }}
      />
      <NativeStack.Screen
        name={`${routeParentPath}/PersionDetail`}
        component={PersionDetail}
        options={{
          animation: 'slide_from_bottom',
        }}
      />
      <NativeStack.Screen
        name={`${routeParentPath}/SeniorEntry`}
        component={SeniorEntry}
        options={{
          headerShown: true,
          title: '高级功能',
        }}
      />
    </NativeStack.Navigator>
  );
};
